<?php
class template_users extends theme
{
	
	protected function head()
	{
	?>
<link type="text/css" rel="stylesheet" href="templates/team/css/users.css">
	<?php
	}

	protected function center()
	{
		$users = $this->get('users');
		?>
<div class="center-title">开发团队</div>
<div class="center-content">

<div class="users">
<ul>
<?php
if(count($users))
{
$t = time();
foreach($users as $user)
{
$is_online = ($t-$user->beat_time)<660;
?>
<li>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center" valign="top">
<a href="<?php echo url('./?controller=team&task=user_detail&user_id='.$user->id.'&menu_id='.$this->get('menu_id') ); ?>">
<div class="avatar">
<img src="storage/avatar/large_<?php echo $user->avatar; ?>" width="96" border="0" />
</div>
</a>
</td>
<td valign="top">
<div class="job"><?php echo $user->job; ?></div>
<div class="description"><?php echo $user->description; ?></div>
<?php if($user->website){ ?>
<div class="website"><a href="http://<?php echo $user->website; ?>" target="_blank">http://<?php echo $user->website; ?></a></div>
<?php } ?>
</td>
</tr>
<tr>
<td width="140">
<div class="name">
<a href="<?php echo url('./?controller=team&task=user_detail&user_id='.$user->id.'&menu_id='.$this->get('menu_id') ); ?>"><?php echo $user->name; ?></a>&nbsp;<img src="images/icon_<?php echo $is_online?'online':'offline' ?>.gif" border="0" align="absmiddle" />
</div>
</td>
<td>


<?php if($user->qq){ ?>
<a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=<?php echo $user->qq; ?>&amp;Site=<?php echo urlencode(bone::get_config('system')->site_name); ?>&amp;Menu=yes" target="_blank">
<img src="http://wpa.qq.com/pa?p=1:<?php echo $user->qq; ?>:4" alt="QQ" border="0" height="16">
</a>
<?php } ?>

<?php if($user->wangwang){ ?>
<a href="http://amos1.taobao.com/msg.ww?v=2&amp;uid=<?php echo urlencode($user->wangwang); ?>&amp;s=2" target="_blank">
<img src="http://amos1.taobao.com/online.ww?v=2&amp;uid=<?php echo urlencode($user->wangwang); ?>&amp;s=2" alt="淘宝旺旺" border="0" width="16" height="16">
</a>
<?php } ?>
</td>
</tr>
</table>

</li>
<?php
}
}
?>
</ul>
</div>

</div>
		<?php
	}		
		

}
?>